package com.my.study.bean;

import com.my.study.springframework.bean.factory.DisposableBean;
import com.my.study.springframework.bean.factory.InitializingBean;

/**
 * @author: yidujun
 * @create: 2021/07/07 15:39
 */
public class UserService7 implements InitializingBean, DisposableBean {

    private String uId;
    private String company;
    private String location;
    private UserDao7 userDao7;

    @Override
    public void destroy() throws Exception {
        System.out.println("执行：UserService7.destroy");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("执行：UserService7.afterPropertiesSet");
    }

    public String queryUserInfo(String uId) {
        return userDao7.queryUserName(uId);
    }

    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public UserDao7 getUserDao7() {
        return userDao7;
    }

    public void setUserDao7(UserDao7 userDao7) {
        this.userDao7 = userDao7;
    }
}
